//
//  DDTextInputView.h
//  DongDongWedding
//
//  Created by 谢曦 on 16/9/12.
//  Copyright © 2016年 gl. All rights reserved.
//

#import <UIKit/UIKit.h>
@class DDTextView;
@protocol DDTextViewDelegate <NSObject>
@optional
- (void)textViewDidChange:(UITextView *)textView;
- (void)textViewDidBeginEditing:(DDTextView *)textView;
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
- (void)textViewClickKeyboardDone;
- (BOOL)textViewShouldBeginEditing:(UITextView *)textView;
@end

@interface DDTextView : UITextView
@property(nonatomic,copy) NSString *placeholderStr;  //文字
@property (nonatomic,strong) UIFont *placeholderFont;//占位和textview默认字体大小样式一样
@property(nonatomic,strong) UIColor *placeholderColor; //文字颜色
@property(nonatomic,assign) CGRect placeholderFrame; //占位位置
@property (nonatomic,assign) BOOL placeholderHidden;

@property (nonatomic, assign) NSInteger maxlimitedCharacterCount;

///** 字数限制等扩展.*/
@property (nonatomic, weak) id<DDTextViewDelegate> ddDelegate;
@end
